package com.example.flutter_card_plugin.model;

import java.text.SimpleDateFormat;

/**
 * @项目名称:Card
 * @作者: zhongfei
 * @创建时间:2019\1\21
 * @描述:串口数据
 */
public class ComBean {

    public byte[] bRec=null;
    public String sRecTime="";
    public String sComPort="";
    public ComBean(String sPort, byte[] buffer, int size){
        sComPort=sPort;
        bRec=new byte[size];
        for (int i = 0; i < size; i++){
            bRec[i]=buffer[i];
        }
        SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        sRecTime = sDateFormat.format(new java.util.Date());
    }





}
